package com.atguigu.lease.common.context;

public class LoginSysUserContext {
    private static ThreadLocal<LoginSysUser> threadLocal = new ThreadLocal<>();
    public static void setContex(LoginSysUser loginSysUser){
        threadLocal.set(loginSysUser);
    }
    public static LoginSysUser getContex(){
        return threadLocal.get();
    }
    public static void removeContex(){
        threadLocal.remove();
    }
}
